﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace logic
{
    public class complaint
    {
        public static int insert(ComplaintEntity clEnt)
        {
            return Complaint.insert(clEnt);
        }
        public static void update(ComplaintEntity clEnt)
        {
            Complaint.update(clEnt);
        }

        public static DataSet select(string where, string orderby, int pagesize, int pageindex)
        {
            return DbHelper.ExecuteDataSetPageSize("*", "vw_Complaint_list a", where, "a.complaintid", orderby, pagesize, pageindex);
        }
        public static DataSet outputExcel(string where)
        {
            return Complaint.OutputExcel(where);
        }
        public static ComplaintEntity getBycId(int cId)
        {
            return Complaint.getBycId(cId);
        }
    }
}
